<?php

//$page = [
//    [
//        'name' => 'wowgb',
//        'url' => 'https://www.facebook.com/profile.php?id=61574960722373'
//    ],
//    [
//        'name' => 'wowp',
//        'url' => 'https://www.facebook.com/profile.php?id=61572940258938'
//    ],
//    [
//        'name' => 'wowd',
//        'url' => 'https://www.facebook.com/profile.php?id=61573039072883'
//    ],
//    [
//        'name' => 'cwc',
//        'url' => 'https://www.facebook.com/profile.php?id=61572902552264'
//    ],
//    [
//        'name' => 'wi',
//        'url' => 'https://www.facebook.com/weddingInvitation2tg'
//    ]
//];


//定义一个一维数组，数据的值是page中的url

$urls = [
    '1'=>'https://www.facebook.com/profile.php?id=61574960722373',
    '2'=>'https://www.facebook.com/weddingInvitation2tg',
    '3'=>'https://www.facebook.com/profile.php?id=61572940258938',
    '4'=>'https://www.facebook.com/profile.php?id=61572902552264',
    '5'=>'https://www.facebook.com/profile.php?id=61573039072883',
    '6'=>'https://www.facebook.com/profile.php?id=61574960722373',
    '7'=>'https://www.facebook.com/profile.php?id=61572902552264',
    '8'=>'https://www.facebook.com/profile.php?id=61573039072883',
    '9'=>'https://www.facebook.com/weddingInvitation2tg',
    '10'=>'https://www.facebook.com/profile.php?id=61572902552264',
    '11'=>'https://www.facebook.com/weddingInvitation2tg',
    '12'=>'https://www.facebook.com/profile.php?id=61574960722373',
    '14'=>'https://www.facebook.com/profile.php?id=61572940258938',
    '16'=>'https://www.facebook.com/profile.php?id=61573039072883',
    '18'=>'https://www.facebook.com/profile.php?id=61572902552264',
    '20'=>'https://www.facebook.com/weddingInvitation2tg'
];


//根据当前时间，获取urls对应的值
$page = $urls[date('H')];



$arr['status'] = 200;
$arr['info'] = $page;
die(json_encode($arr));


?>

